package com.kwq.designPattern.construct.flyweight;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author kangwanqiang
 * @date 2021/2/7
 */
@Data
@AllArgsConstructor
public class EVCar implements Car {

    Integer color;

    @Override
    public void drive() {
        System.out.println("电动车呜呜呜。。。");
    }

    public enum Color {
        YELLOW(1), GREEN(2);

        Integer color;

        Color(Integer color) {
            this.color = color;
        }
    }
}
